<% layout("/common/layout.html",{"title":"主页"}){ %>
<div class="row wrapper border-bottom white-bg page-heading">
	<div class="col-sm-8">
		<h2>一窗多办</h2>
		<ol class="breadcrumb">
			<li><a href="${ctxPath}/windowOffices/view/index">主页</a></li>
			<li class="active">申报信息</li>
		</ol>
	</div>
</div>
<div class="wrapper wrapper-content">
	<div class="row  mt15">
	      <!-- 搜索-->
 <% include("/windowOffices/search_bar.html"){} %> 
      <!-- 搜索-->
		<div class="wrapper wrapper-content">
			<div class="panel panel-primary">
				<div class="panel-heading">
					<h2 style="color: white;">${item.serviceName!}</h2>
					<h4 style="color: white;">受理部门：${item.deptName!} &nbsp; &nbsp; &nbsp; &nbsp;事项编码：${item.serviceCode!}</h4>
				</div>
				<div class="panel-body">
				    <div class="row mt15">
					 <!--申报导航菜单-->
					 <% include("/windowOffices/declare_menu.html"){} %> 
				      <div class="col-sm-10">
                         <h5 class="alert alert-warning">提醒：带*的地方为必填项，请根据实际情况填写。</h5>
				         <form id="itemForm" class="form-horizontal" name="itemForm" method="post" role="form">
	                     <input type="hidden" name="serviceCode" value="${item.serviceCode!}">
	                     <input type="hidden" name="deptName" value="${item.deptName!}">
	                     <input type="hidden" name="deptCode" value="${item.deptCode!}">
	                     <input type="hidden" name="qlKind" value="${decode(item.serviceType,'XK','行政许可','JC','行政检查','QZ','行政强制','ZC','行政征收','GF','行政给付','CJ','行政裁决','QR','行政确认','JL','行政奖励','GG','公共服务','QT','其他权力','')}">
	                     <input type="hidden" name="infoType" value="${item.infoType!}">
	                     <input type="hidden" name="applyPropertiy" value="${item.applyPropertiy!}">
	                     <input type="hidden" name="receiveUserid" value="${user.id!}">
	                     <input type="hidden" name="receiveName" value="${user.userName!}">
	                     <input type="hidden" name="promiseDays" value="${item.promiseDays!}">
	                     <input type="hidden" name="legalDays" value="${item.legalDays!}">
                     <legend> <span class="text text-info text-left">审批条件</span></legend>
                           <table width="99%" border="0" cellpadding="0" cellspacing="0" class="table table-bordered ">
                                    <col width="15%" align="right">
                                    <col width="35%" align="left">
                                    <col width="15%" align="right">
                                    <col width="35%" align="left">
                                    <tr>
                                        <th><i class="text-danger">*</i>申报事项名称:</th>
                                        <td colspan="3">
                                            <input type="text" class="form-control" id="serviceName" name="serviceName" value="${item.serviceName!}"   maxlength="255"  placeholder="请输入申报事项名称" required readonly="readonly"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th><i class="text-danger">*</i>申报人:</th>
                                        <td><input type="text" class="form-control" id="applyName" name="applyName" value="" maxlength="25" placeholder="请输入申报人" required  /></td>
                                        <th><i class="text-danger">*</i>身份证:</th>
                                        <td><input type="text" class="form-control" id="applyCardNumber" name="applyCardNumber" value="" maxlength="18" placeholder="请输入身份证"  required  /></td>
                                    </tr>
                                     <tr>
                                        <th><i class="text-danger">*</i>联系人姓名:</th>
                                        <td><input type="text" class="form-control" id="contactMan" name="contactMan" value=""  maxlength="25" placeholder="请输入联系人姓名" required/></td>
                                        <th><i class="text-danger">*</i>联系人手机：</th>
                                        <td><input type="text" class="form-control" id="phone" name="phone" value="" maxlength="11" placeholder="请输入联系人手机"  required/></td>
                                    </tr>
                                     <tr>
                                        <th>联系人身份证：</th>
                                        <td><input type="text" class="form-control" id="contactManCardNumber" name="contactManCardNumber" value="" maxlength="18" placeholder="请输入联系人身份证"  /></td>
                                        <th>联系人电话：</th>
                                        <td><input type="text" class="form-control" id="telphone" name="telphone" value="" maxlength="30" placeholder="请输入联系人电话"  /></td>
                                    </tr>
                                     <tr>
                                        <th><i class="text-danger">*</i>申请类型：</th>
                                        <td>
                                         <select name="applyType" id="applyType" class="form-control" required>
                                                <option value='个人申请' >个人申请</option>
                                                <option value='法人申请' >法人申请</option>
                                            </select>
                                        </td>
                                        <th>邮编：</th>
                                        <td>
                                            <input type="text" class="form-control" id="postCode" name="postCode"  value="" maxlength="255"  placeholder="请输入邮编"  />
                                        </td>
                                    </tr>
                                      <tr>
                                        <th><i class="text-danger">*</i>通讯地址：</th>
                                        <td colspan="3">
                                            <input type="text" class="form-control" id="address" name="address" value="" maxlength="255" placeholder="请输入通讯地址" required/>
                                        </td>
                                    </tr>
                                     <tr>
                                        <th>备注：</th>
                                        <td colspan="3">
                                            <input type="text" class="form-control" id="remark" name="remark" value="" maxlength="255" placeholder="请输入备注" />
                                        </td>
                                    </tr>
                                </table>
                      <legend> <span class="text text-info text-left">收取材料</span></legend>
                        <%if(isNotEmpty(filesList)){
                         for(file in filesList){
                        %>							
                        <div id="file_${fileLP.index}">
                       <div   class="form-group">
                                <label class="control-label"><h4>${fileLP.index} 、${file.name!}</h4></label>
                                <span class="input-group-btn">
                                   <input name="attrName" type="hidden" value="${file.name!}" >
                                    <input name="files" class="form-control attrUploader" type="file">
                                </span>
                        </div>
                         <div class="attrUploaderShow center-block row">
                 
                          </div>
                          </div>
		                <%  } }else{ %>
		                 <h3> 无</h3>
		                <% } %> 
                        </form>
                       <h5 class="alert alert-danger">注：本人对办理该事项所提交的申报材料实质内容的真实性负责。</h5>
				        </div>
				    </div>
				</div>
				
		   <div class="panel-footer">
                <div class="col-sm-offset-5 clearfix">
                    <div class="mt5 mb5 block col-sm-4">
                 <button id="submit"  class="btn btn-info btn-lg btn-outline btn-block" >下一步</button>
             </div>
                </div>
            </div>
			</div>
		</div>
	</div>
</div>
<% } %>
<script>
	require([ 'windowOffices/windowOffices' ], function(windowOffices) {
		windowOffices.handle();
	});
</script>
</body>
</html>